// components/book-detail/book-detail.js
Component({
  properties: {
    book: Object,
    show: Boolean
  },

  methods: {
    onClose() {
      this.triggerEvent('close');
    },

    onClaim() {
      this.triggerEvent('claim');
    },

    onFavorite() {
      this.triggerEvent('favorite');
    }
  }
})